{include file="Public:header" /}

		<div class="bar bar-nav">
			<h1 class="title">预约消息</h1>
			<i class="icon icon-left" onclick="window.history.go(-1);"></i>
		</div>
		<div class="content xiaoxi">
		   {foreach name="data" item="data" key="k"}
			<div class="card">
				<a href="{:U('Users/make_message_page',array('id'=>$data['id'],'status'=>$data['status']))}" class="card-header" style="font-size: 0.65rem;">{$data['title']} {if condition="$data['status'] eq 1"}<strong style="color:red;">[ 未读 ]</strong>{else/}<strong style="color:#999;">[ 已读 ]</strong>{/if}<span style="color: #999;float:right;">{$data['add_time']|date="Y-m-d",###} <i class="icon icon-right"></i></span></a>
			
			</div>
			{/foreach}
			
			{if condition="$message_show eq ''"}
				<p id="load_more"> 暂无数据！</p>
			{/if}
			
		</div>
		
{include file="Public:footer" /}
		<script>
			jQuery(document).ready(function(){
				$(".xiaoxi .card-header").on("click",function(){
					$(this).parent(".card").toggleClass("active");
					$(this).siblings().slideToggle();
				})
			})
		</script>
